//
//  UntentionSetting.swift
//  HIextractLicve
//
//  Created by HIextractLicve on 2024/12/10.
//

import UIKit
import ProgressHUD
class UntentionSetting: UIViewController {
    var mindfulness:Set<Int>?
    var suggestion:Set<String>?
    var  professionals:Set<CGFloat>?
    var exchangeHTLC:[String:Array<Dictionary<String,String>>]?
    
    
    var eachVioViewHTLC:THLCNOrBUTTOn?
    var mindfulnessPageHTL:THLCNPageControll?
    var journeyHTLC:UIView?
    
    
    @IBAction func Funrightnoweback(_ sender: Any) {
        if self.navigationController?.navigationBar.isHidden == true {
            journeyHTLC?.alpha = 1
            journeyHTLC?.layer.cornerRadius = 12
        }
        self.navigationController?.popViewController(animated: true)
    }

    
    @IBOutlet weak var contentReportViewHTLC: UITextView!
    override func viewDidLoad() {
        super.viewDidLoad()
        mindfulness = [99]
        suggestion = ["decompression"]
        professionals = [12.1]
        exchangeHTLC = ["themtopicHTLC":[["decompression":"098"]]]

        contentReportViewHTLC.layer.cornerRadius = 20
        contentReportViewHTLC.layer.masksToBounds = true
        
        contentReportViewHTLC.contentInset = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
    }

    @IBAction func resonPickTouck(_ sender: UIButton) {
        mindfulness = [99]
        suggestion = ["decompression"]
        professionals = [12.1]
        exchangeHTLC = ["themtopicHTLC":[["decompression":"098"]]]

        sender.isSelected = !sender.isSelected
    }
    
    @IBAction func suresubmitReasion(_ sender: Any) {
        let reasiong0 = view.viewWithTag(10) as? UIButton
        let reasiong1 = view.viewWithTag(11) as? UIButton
        let reasiong2 = view.viewWithTag(12) as? UIButton
        let reasiong3 = view.viewWithTag(13) as? UIButton
        let reasiong4 = view.viewWithTag(14) as? UIButton
        
        if reasiong0?.isSelected == false
            && reasiong1?.isSelected == false
            && reasiong2?.isSelected == false
            && reasiong3?.isSelected == false
            && reasiong4?.isSelected == false{
            
            ProgressHUD.banner(HTLROOOMMeasg.BinrwetioBase64("QSBwcm9tcHQgbWVzc2FnZQ=="),"Please choice one reason to submit at least!!!" , delay: 2.0)
            return
        }
        ProgressHUD.animate()
        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1.5, execute: DispatchWorkItem(block: {
         
            ProgressHUD.succeed(HTLROOOMMeasg.BinrwetioBase64("U3VibWl0dGVkIHN1Y2Nlc3NmdWxseSwgd2Ugd2lsbCByZXZpZXcgYW5kIHByb2Nlc3MgeW91ciByZXBvcnQgYXMgc29vbiBhcyBwb3NzaWJsZSE="), delay: 2.5)
           
                self.navigationController?.popViewController(animated: true)
            
           
        }))
       
        
    }
    
}
